//
//  LYYHotColumnModel.m
//  Icar
//
//  Created by dllo on 15/10/19.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "LYYHotColumnModel.h"

@implementation LYYHotColumnModel

- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeInteger:self.forumId forKey:@"forumId"];
    [aCoder encodeObject:self.icon forKey:@"icon"];
    [aCoder encodeInteger:self.postCount forKey:@"postCount"];
    [aCoder encodeObject:self.forumName forKey:@"forumName"];
    [aCoder encodeObject:self.url forKey:@"url"];
    
}

- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self) {
        
        self.forumId = [aDecoder decodeIntegerForKey:@"forumId"];
        self.icon = [aDecoder decodeObjectForKey:@"icon"];
        self.postCount = [aDecoder decodeIntegerForKey:@"postCount"];
        self.forumName = [aDecoder decodeObjectForKey:@"forumName"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
    }
    return self;
}


@end
